
package com.microweb.toastmaster.service;

import java.util.List;
import com.microweb.toastmaster.model.Agenda;
import com.microweb.toastmaster.model.Query;
import com.microweb.toastmaster.model.viewwrapper.UserWrapper;

public interface AgendaManager extends Manager {
    /**
     * Retrieves all of the agendas
     */
    public List getAgendas(Agenda agenda);

    /**
     * Gets agenda's information based on id.
     * @param id the agenda's id
     * @return agenda populated agenda object
     */
    public Agenda getAgenda(final String id);

    /**
     * Saves a agenda's information
     * @param agenda the object to be saved
     */
    public void saveAgenda(Agenda agenda);

    /**
     * Removes a agenda from the database by id
     * @param id the agenda's id
     */
    public void removeAgenda(final String id);
    
    public List query(final Query query);
    
    public UserWrapper getUserbyRole(String id, String rolename);
}

